<script setup lang="ts">
import { onMounted, ref } from 'vue';

// dom获取限制类型
const iptRef = ref<null | HTMLInputElement>(null)

onMounted(() => {
  iptRef.value?.focus()
})
</script>

<template>
  <input type="text" ref="iptRef">
</template>

<style scoped>
</style>
